package com.pktechan.api.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
@ConfigurationProperties(prefix = "ysp")
public class YspConfig {
    private CloudPoint cloudPoint;

    public CloudPoint getCloudPoint() {
        return cloudPoint;
    }

    public void setCloudPoint(CloudPoint cloudPoint) {
        this.cloudPoint = cloudPoint;
    }

    public static class CloudPoint {
        private BigDecimal withdrawRate;

        public BigDecimal getWithdrawRate() {
            return withdrawRate;
        }

        public void setWithdrawRate(BigDecimal withdrawRate) {
            this.withdrawRate = withdrawRate;
        }
    }
}
